package com.ning.activitys.skysound.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.ning.activitys.skysound.R;
import com.ning.activitys.skysound.base.BaseActivity;

/**
 * Created by dllo on 16/1/11.
 */
public class SetActivity extends BaseActivity implements View.OnClickListener {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set);

        findViewById(R.id.btn_set_activity_back).setOnClickListener(this);
        findViewById(R.id.btn_game).setOnClickListener(this);
    }

    //更新播放状态的抽象方法
    @Override
    public void publish(int progress) {

    }

    @Override
    public void change(int position) {

    }

    //监听方法
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_set_activity_back:
                finish();
                break;

            case R.id.btn_game:

                Intent intent = new Intent(SetActivity.this,GameActivity.class);
                startActivity(intent);

                break;
        }
    }
}
